var control = document.getElementById("a").$control;

console.log(control);

control.on("scrollEnd", function(e) {    
    let index = control.getSelectedIndex();
    console.log("scrollend", e, index);
})